home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / diskutil / df_suite.lzh / df_suite.txt next >
Encoding:
Text File  |  1991-01-27  |  5.4 KB  |  103 lines

  1.         A SUITE OF DISK<->FILE TRANSFER/BACKUP UTILITIES.
  2.  
  3.     IN OFFERING THIS SOFTWARE THE AUTHOR DISCLAIMS ALL RESPONSIBILITY
  4. FROM ANY CONSEQUENCES ARISING FROM THEIR USAGE.
  5.  
  6.                  W. Alan B. Evans | Email: wabe@ukc.ac.uk
  7.                         
  8.  
  9.              SECTMAN.PRG - THE SECTOR MANAGER.
  10.  
  11.     This useful utility allows the transfer of specified sectors (512bytes)
  12. from DISK <--> MEMORY BUFFER or from FILE <--> MEMORY BUFFER. Rwabs WRITE
  13. Verify may be turned OFF for quicker writing and, you are prompted whether you
  14. wish to use hard/soft read/write options in writing to disk. One one occassion
  15. HARD writing a VIRUS-INFECTED BOOTSECTOR with the SECTOR MANAGER cured the
  16. latter - wheras if a soft write was attempted the virus was alerted to foil
  17. the attempted transfer and persue its evil way (of not allowing access to the
  18. disk contents in that particular case)!.
  19.  
  20.     SECTMAN must have enough free RAM to hold all the sectors asked for
  21. in one contiguous buffer. Thus multiple copies of entire disks can be quickly
  22. made to preformatted floppies with the SAME FAT structure for example. Indeed
  23. the copies could be written to files also and large disks can be split up into
  24. portions - each portion stored on a named file. HDQBUR automates this for Hard
  25. Disk Backups (see next Item).
  26.  
  27.  
  28.         HDQBUR.PRG - HARD-DISK QUICK BACK-UP AND RESTORE.
  29.  
  30.     This utility utilises similar TECHNIQUES to the SECTOR MANAGER to
  31. quickly back up a hard disk partition onto big files on floppies. It assumes
  32. you have formatted disks to 820k capacity (using DCFORMAT for example) and
  33. will sequentially copy 1620 contiguous sectors to 810k files on each floppy
  34. and label them C_BACKUP.A, C_BACKUP.B etc. if one is backing harddisk C:\ say.
  35. The files' datestamp of course tells you when you last backed and if the disks
  36. are accidentally inputted in wrong order - you are alerted and prompted with
  37. relevant questions. Disk writes are very fast as the write VERIFY is turned
  38. OFF. In my experience file write errors are rare - I have yet to experience
  39. one! - but after restoring a partition, it would be wise to run a File System
  40. Checker such as FSCK by Jorg Lohse to check its integrity. Typically a 10 Meg
  41. Partition takes about 12 mins to back and about the same time to restore and
  42. 13 disks are required.
  43.  
  44.     Despite its name, HDQBUR is also suitable for backing up the contents
  45. of huge ramdisks. We have a 2 Mbyte "rdy" Ramdisk loaded with all the system
  46. files required by the Helios Operating System for a 21 Transputer Polyhedron
  47. (or Atari Transputer Workstation) which we regularly back in this manner (onto
  48. 3 floppies).
  49.  
  50.  
  51.         DFT.PRG  -   THE DISK-FILE TRANSFERER.
  52.  
  53.     This is similar to SECTMAN in concept EXCEPT that it is designed to
  54. shift FILE<-->FILE, DISK--->FILE or FILE-->DISK or DISK<-->DISK but WITHOUT
  55. requiring enough FREE RAM to hold all transfer bytes simultaneously in memory.
  56. If FREE RAM is short, DFT will effect the transfer sensibly in multiple stages
  57. much as Moshe Braner's FLEXCOPY or the DISKCOPY option of DCFORMAT will do.
  58. However in copying from DISKS - DFT will not attempt to copy the BOOTSECTOR
  59. (sector 0) which is protected anyway on some ramdisks e.g. Mark Williams' RDY
  60. ramdisks. Thus DFT can succeed whereas other utilities fail to transfer the
  61. contents of an "rdy" ramdisk to a similarly formatted disk - this usually
  62. means configuring the "rdy" ramdisk to have a floppy-like FAT structure e.g 
  63.  
  64. setenv FATSIZE 12;setenv FSIZE 5;setenv ROOT 7;setenv CMD MAKE
  65. rdy DISK=H SIZE=811 FILE=rdh811.prg
  66.  
  67. would create a floppy-like ramdisk H:\ with the same capacity as an 820k disk
  68. formatted with DCFORMAT as the file rdh811.prg. The size 811kbytes is not
  69. critical - so long as there is enough space and the FAT STRUCTURES are
  70. identical. DFT copies disks from sector 1 upwards to a user-specified higher
  71. limit which should be high enough to encompass all diskcontents but need not
  72. copy the entire sector set of the disk. Write Verify can be chosen to be ON or
  73. OFF. DFT thus enables very quick backup copies of RDY ramdisk contents to disk.
  74. Beware however the "default" values of FATSIZE[16] and FSIZE[chosen to depend
  75. on disk SIZE - but usually 3 sectors for ramdisks of about 800k] which unless
  76. overrided (as above), means there is no hope of making a "FLEXCOPY-LIKE"
  77. transfer to floppy.
  78.  
  79.     DFT distinguishes files from DISKS by the case of the first letter
  80. typed - lower case implies a file wheras DISK A:\ (say) must be entered in
  81. UPPER CASE i.e. A (not a). In transfers involving DISKS, whole sectors are
  82. copied but for file to file transfers the EXACT number of bytes in the file
  83. is copied so making an exact replica of original file. (i.e. it emulates cp).
  84.  
  85.     If, in copying to floppy DISK A:\ or B:\, DFT finds there is enough
  86. RAM to effect the transfer in one stage - it will offer multiple copies of the
  87. ENTIRE buffer - much as DCFORMAT will.
  88.  
  89.  
  90. COMPILATION NOTES
  91.  
  92.     DFT and HDQBUR are quite tiny programs - thanks to Sozobon C's
  93. remarkable "sys\minimum.h". SECTMAN makes use of higher level i/o and thus
  94. needed a full-blooded "stdio.h". It was compiled with Mark Williams C
  95. followed by packing with PFXPAK (after STRIP.PRG and removing symbol table
  96. with RSYM.PRG).
  97.  
  98.                                                 Alan Evans, 
  99.                                                 University of Kent,
  100.                                                 Canterbury,
  101.                                                 Kent, CT2 7NR, UK.
  102.                                                 ( Email: wabe@ukc.ac.uk )
  103.